package bajo.src;

import net.rim.device.api.ui.component.ButtonField;

/*
 * This class is used for the post button, made to adjust the width and
 * height of the post button.
 */
public class CustomButton  extends ButtonField {
	
	private int width;
	private int height;
	
	public CustomButton(String text, int width, int height) {
		super(text);
		
		this.width = width;
		this.height = height;
	}

	/*
	 * Set the height of the button to the specified value.
	 */
	public int getPreferredHeight() {
		return height;
	}
	
	/*
	 * Set the width of the button to the specified value.
	 */
	public int getPreferredWidth() {
		return width;
	}
}
